import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class Layout extends StatelessWidget {
  final String title;
  final Widget content;

  Layout(this.title, this.content);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title, style: Theme.of(context).textTheme.headline3),
        centerTitle: true,
      ),
      body: Center(
        child: content,
      ),
    );
  }
}
